#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

void reversal(int* arr, int sz) {
	int i = 0;
	int j = sz;
	while (i<j) {
		int tmp = 0;
		tmp = arr[j];
		arr[j] = arr[i];
		arr[i] = tmp;
		i++;
		j--;
	}
}
void print(int* arr,int sz) {
	int i = 0;
	for (i = 0; i < sz; i++) {
		printf("%d ", arr[i]);
	}
	printf("\n");
}
int main() {
	int arr[5] = { 53,5,76,34,8 };
	int sz = sizeof(arr) / sizeof(arr[0]);
	reversal(arr, sz - 1);
	print(arr, sz);
}